package com.cjy.appIndexHeaderFlash.service.impl;

		import com.base.common.enums.AppType;
		import com.base.common.enums.TerminalType;
		import com.base.common.persistent.dao.AppIndexHeaderFlashMapper;
		import com.base.common.persistent.model.AppIndexHeaderFlash;
		import com.cjy.appIndexHeaderFlash.service.AppIndexHeaderFlashService;
		import org.springframework.stereotype.Service;

		import javax.annotation.Resource;
		import java.util.List;

@Service("appIndexHeaderFlashService")
public class AppIndexHeaderFlashServiceImpl implements
		AppIndexHeaderFlashService {

	@Resource
	private AppIndexHeaderFlashMapper appIndexHeaderFlashMapper;

	@Override
	public List<AppIndexHeaderFlash> queryAll(int bid) {
		if(bid == TerminalType.JCJY_ANDROID.getValue() || bid == TerminalType.JCJY_IOS.getValue()) {
			bid = AppType.JCJY.getValue();
		} else {
			bid = AppType.CJY.getValue();
		}
		return appIndexHeaderFlashMapper.queryAll(bid);
	}

}
